<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
var t = async_test("Updating attributes for detached nodes should not crash.");
function test() {
  frame.contentDocument.adoptNode(document.scrollingElement);
  t.done();
}
</script>
<iframe id="frame" onload="test()"></iframe>
<div ontransitionend="g()" onwebkittransitionend="h()">
